﻿
$(document).ready(function () {
    $("#Code").attr("disabled", "true");
    if (action == "insert") {
        $("#DeliverCount").val(1);
        GetProductCode();
    }
});

var GetProductCode = function () {
    YAHOO.util.Connect.asyncRequest('GET', "../../Extend/AjaxData/CustomOperating.aspx?r=" + Math.random() + "&action=check&entity=ProductCode",
    { success: function (res) {
        try {
            var str = res.responseText;
            $("#Code").val(str);
        }
        catch (e) {
        }
        finally {
        }
    }, failure: function () { }
    });
}